package boardWindow;

import java.awt.Color;
import java.awt.Graphics;

class CellSquare{

    private int xPos = 0;
    private int yPos = 0;
    private int squareSize = 20;
    private Color color = Color.WHITE;
    
    public CellSquare(int _squareSize){
    	squareSize = _squareSize;
    }
    public CellSquare(int _squareSize, int _xPos, int _yPos){
    	xPos = _xPos;
    	yPos = _yPos;
    	squareSize = _squareSize;
    }

    public void setX(int xPos){ 
        this.xPos = xPos;
    }

    public int getX(){
        return xPos;
    }

    public void setY(int yPos){
        this.yPos = yPos;
    }

    public int getY(){
        return yPos;
    }
    
    public int getSize(){
        return squareSize;
    } 
    
    public void setColor(Color _color){
    	color = _color;
    }


    public void paintSquare(Graphics g){
        
    	g.setColor(color);
        g.fillRect(xPos,yPos,squareSize,squareSize);
        g.setColor(Color.DARK_GRAY);
        g.drawRect(xPos,yPos,squareSize,squareSize);  
    }
    
    public void paintSquare(Graphics g, Color otherColor){
        
    	g.setColor(otherColor);
        g.fillRect(xPos,yPos,squareSize,squareSize);
        g.setColor(Color.BLACK);
        g.drawRect(xPos,yPos,squareSize,squareSize);  
    }
}